KitePlayerMediaSession

class KitePlayerMediaSession(player: KitePlayer, skipInterval: Duration = 15.seconds) : AutoCloseable

The desktop has no media session. This exists so code that builds one on every platform compiles here too; it mirrors nothing, and isAvailable is false.

Each desktop system has its own API for this: a D-Bus interface on Linux, the system media controls on Windows, the now playing centre on macOS. Every one of them needs a native bridge, which is out by decision, so no module exists for one.

Parameters

skipInterval

accepted and dropped, like everything else here.

Constructors

Link copied to clipboard
constructor(player: KitePlayer, skipInterval: Duration = 15.seconds)

Properties

Link copied to clipboard
val isAvailable: Boolean = false

Always false here.

Link copied to clipboard
val platformToken: Any? = null

Nothing to hand out. Always null.

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
fun setArtwork(image: Image?)

Accepted and dropped, so a caller keeps one line per platform.